import request from '@/utils/request'

// 查询汇总采购入库单列表
export function listSumpurinwarehsbill(query) {
  return request({
    url: '/settlementCenter/basebill/sumpurinwarehsbill/list',
    method: 'get',
    params: query
  })
}

// 查询汇总采购入库单详细
export function getSumpurinwarehsbill(id) {
  return request({
    url: '/settlementCenter/basebill/sumpurinwarehsbill/' + id,
    method: 'get'
  })
}

// 新增汇总采购入库单
export function addSumpurinwarehsbill(data) {
  return request({
    url: '/settlementCenter/basebill/sumpurinwarehsbill',
    method: 'post',
    data: data
  })
}

// 修改汇总采购入库单
export function updateSumpurinwarehsbill(data) {
  return request({
    url: '/settlementCenter/basebill/sumpurinwarehsbill',
    method: 'put',
    data: data
  })
}

// 删除汇总采购入库单
export function delSumpurinwarehsbill(id) {
  return request({
    url: '/settlementCenter/basebill/sumpurinwarehsbill/' + id,
    method: 'delete'
  })
}
